﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="AddNewProviderWorkShop.aspx.cs" Inherits="Admin_provider_AddNewProviderWork"
    Title="Provider Workshop - Admin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Provider Work Shop
            <asp:Label ID="lblProviderWorkshopId" Visible="false" runat="server"></asp:Label></h1>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Work Shop Name</label></dt>
                <dd>
                    <asp:TextBox ID="txtWorkShopName" runat="server" MaxLength="100" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvWorkShopName" runat="server" ErrorMessage="Require work shop name."
                        ControlToValidate="txtWorkShopName" Display="Dynamic" 
                        ValidationGroup="workshop"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Block No.</label></dt>
                <dd>
                    <asp:TextBox ID="txtBlockNo" runat="server" MaxLength="10" Width="80px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Area Name</label></dt>
                <dd>
                    <asp:TextBox ID="txtAreaName" runat="server" MaxLength="100" Width="180px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Building Name</label></dt>
                <dd>
                    <asp:TextBox ID="txtBuildingName" runat="server" MaxLength="100" Width="250px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Level No.</label></dt>
                <dd>
                    <asp:TextBox ID="txtLevelNo" runat="server" MaxLength="10" Width="80px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Room No.</label></dt>
                <dd>
                    <asp:TextBox ID="txtRoomNo" runat="server" MaxLength="10" Width="80px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRoomNo" runat="server" ErrorMessage="Require room number."
                        ControlToValidate="txtRoomNo" ValidationGroup="workshop" 
                        Display="Dynamic"></asp:RequiredFieldValidator>
                                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Street</label></dt>
                <dd>
                    <asp:TextBox ID="txtStreetName" runat="server" MaxLength="100" Width="250px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Post Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtPostCode" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" ErrorMessage="Require post code."
                        ControlToValidate="txtPostCode" ValidationGroup="workshop" 
                        Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="Post code number is not valid." ValidationExpression="\d{6}" 
                        ValidationGroup="workshop" ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                </dd>
            </dl>
             <dl>
                <dt>
                    <label>
                        Contact No.</label></dt>
                <dd>
                    <asp:TextBox ID="txtPhoneNum" runat="server" MaxLength="100" Width="250px"></asp:TextBox></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Zone</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlZone" runat="server" AutoPostBack="false">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem>North</asp:ListItem>
                        <asp:ListItem>East</asp:ListItem>
                        <asp:ListItem>South</asp:ListItem>
                        <asp:ListItem>West</asp:ListItem>
                        <asp:ListItem>Center</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvWorkShopName1" runat="server" ErrorMessage="Select a zone."
                        ControlToValidate="ddlZone" ValidationGroup="workshop" InitialValue="-1"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Country</label></dt>
                <dd>
                    <asp:TextBox ID="txtCountry" runat="server" MaxLength="50" Width="150px">Singapore</asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPostCode0" runat="server" ErrorMessage="Require country name"
                        ControlToValidate="txtCountry" ValidationGroup="workshop" 
                        Display="Dynamic"></asp:RequiredFieldValidator>
                                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkWorkShopStatus" runat="server" /></dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="workshop"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="btnSubmit" runat="server" CssClass="float_btn" OnClick="btnSubmit_Click"
                ImageUrl="~/Provider/images/buttons/submit1.gif" ValidationGroup="workshop" />
            <asp:ImageButton CssClass="floatnext_btn" ID="btnClearForm" runat="server" CausesValidation="False"
                OnClick="btnClearForm_Click" OnClientClick="return confirm('Are you sure to clear form?');"
                ImageUrl="~/Provider/images/buttons/new1.gif" />
            <asp:ImageButton ID="btnDelete" runat="server" CssClass="floatnext_btn" ImageUrl="~/Provider/images/buttons/delete1.gif"
                OnClientClick="javascript:return confirm('Are you sure you want to remove this record?');"
                OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server"></asp:Label>
    </div>
</asp:Content>
